﻿using System.Collections.Generic;

namespace KamLib
{

    public class UilActionAttribute : UilMethodAttribute
    {
        public string Title;
        public string IconCls;
        public bool Enabled = true;
    }

    public class UilAction
    {
        public readonly UilController Controller;
        public readonly IUilViewPart ViewPart;
        public readonly string MID;

        public string Title;
        public string IconCls;
        public bool Enabled;

        //public List<UilAction> Items;

        public UilAction(UilController controller, IUilViewPart viewPart, string mid, UilActionAttribute attr)
        {
            Controller = controller;
            ViewPart = viewPart;
            MID = mid;

            Title = attr.Title;
            IconCls = attr.IconCls;
            Enabled = attr.Enabled;
        }
    }

}
